﻿using Appliaction.IAppServices.Base_Manage;
using Domain.Entitys.Base_Manage;
using Domain.IRepositorys.Base_Manage;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Appliaction.AppServices.Base_Manage
{
    public class DictService : IDictService
    {
        private readonly IDictRepository dictRepository;

        public DictService(IDictRepository dictRepository)
        {
            this.dictRepository = dictRepository;
        }

        /// <summary>
        /// 根据字典类型查询字典数据
        /// </summary>
        /// <param name="dict_type"></param>
        /// <returns></returns>
        public List<Sys_Dict_Data> Get_Dict_Datas(string dict_type)
        {
            return dictRepository.Get_Dict_Datas(dict_type);
        }
    }
}
